<!--
    //获取月份和总工资
    //author:化缘
-->

window.onload=function(classid,token){

	function getecomejson(classid,token){
	   $.post("/libraryoa/control/ecome/interfaceofecome.php",{
   	name:classid,
   	tokenid:token
    },function(data,status){
    	var jsonobj=eval('('+data+')'); 
    	var val = jsonobj.priceinfo.sumprice;
     
      $(".getcome").html(val);
      $(".currentmonth").html(jsonobj.month);
      var xue=jsonobj.college;
     $(".collea").html(xue);
     $(".timecount").html(jsonobj.priceinfo.worktime);

    	var price="<tr><td>"+jsonobj.info[0].college+"</td><td>"+jsonobj.info[0].studentid+"</td><td>"+jsonobj.info[0].studentname+"</td><td>"+jsonobj.month+"月"+"</td><td>11小时</td><td>"+"￥"+jsonobj.price+"</td></tr>";
    	 $('#totalprice').html(price); 

    
   });

}

 var userid=$("#usercode").text();
getecomejson(userid,"data");  
    

}